package com.demo.auth.service.impl;

import com.demo.auth.service.SmsCodeSender;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 定义一个默认的短信发送实现类
 *
 * @author YT
 * @date 2019-06-20
 */
@Slf4j
@Service
public class DefaultSmsCodeSender implements SmsCodeSender {

    @Override
    public void sendSmsCode(String mobile, String smsCode) {
        // 模拟短信服务商发送短信
        log.info("{} 的短信验证码: {}", mobile, smsCode);
    }
}
